package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Category;
import com.ruoyi.system.mapper.CategoryMapper;
import com.ruoyi.system.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> selectCategoryList() {
        List<Category> categories = categoryMapper.selectCategoryList();
        return categories;
    }

    @Override
    public String selectById(Integer categoryId) {
        String s = categoryMapper.selectById(categoryId);
        return s;
    }
}
